#include <iostream>
#include "testb.h"
#include "testc.h"

int main() {
    std::cout << "=== 高级库组合功能测试 ===" << std::endl;
    
    // 测试多层组合
    std::cout << "测试场景1: 基础库组合" << std::endl;
    std::cout << get_testb_info() << std::endl;
    std::cout << "计算结果: " << add_numbers(15, 25) << std::endl;
    
    std::cout << get_testc_info() << std::endl;
    std::cout << "计算结果: " << multiply_numbers(7, 8) << std::endl;
    
    // 测试组合库的完整性
    std::cout << "\n测试场景2: 验证组合库包含所有依赖" << std::endl;
    int sum = add_numbers(100, 200);
    int product = multiply_numbers(10, 20);
    
    if (sum == 300 && product == 200) {
        std::cout << "✅ 所有函数都可以正常调用，库组合功能完整！" << std::endl;
    } else {
        std::cout << "❌ 库组合功能存在问题！" << std::endl;
        return 1;
    }
    
    std::cout << "\n测试场景3: 复杂计算验证" << std::endl;
    int a = 12, b = 8;
    int sum_result = add_numbers(a, b);
    int mul_result = multiply_numbers(a, b);
    
    std::cout << "输入: a=" << a << ", b=" << b << std::endl;
    std::cout << "加法结果: " << sum_result << std::endl;
    std::cout << "乘法结果: " << mul_result << std::endl;
    
    if (sum_result == 20 && mul_result == 96) {
        std::cout << "✅ 高级库组合功能测试全部通过！" << std::endl;
        return 0;
    } else {
        std::cout << "❌ 高级库组合功能测试失败！" << std::endl;
        return 1;
    }
}